-
Notifications
You must be signed in to change notification settings - Fork 286
Populate instance config and data node config during server startup #3188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ambry-api/src/main/java/com/github/ambry/config/ClusterMapConfig.java
Outdated
Show resolved
Hide resolved
| // Pattern to match df -h output lines for Ambry mount points | ||
| // Example: /dev/sdh1 21T 14T 6.5T 68% /mnt/u001/ambrydata | ||
| private static final Pattern DF_PATTERN = Pattern.compile( | ||
| "^(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\d+)%\\s+(/mnt/u\\d+/ambrydata)$"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this pattern configurable too?
| /** | ||
| * Collect disk information by running 'df -h' command. | ||
| * @return map of mount point to DiskInfo | ||
| */ | ||
| public static Map<String, DiskInfo> collectDiskInfo() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we should use some library like OSHI instead of running df -h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey yes and would be cleaner, but i guess we can keep it simple for the time being? these info will be available in the metadata file very soon
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HelixFactory.java
Outdated
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3188 +/- ##
============================================
+ Coverage 64.24% 69.82% +5.57%
- Complexity 10398 12809 +2411
============================================
Files 840 930 +90
Lines 71755 79054 +7299
Branches 8611 9455 +844
============================================
+ Hits 46099 55197 +9098
+ Misses 23004 20916 -2088
- Partials 2652 2941 +289 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Testing Done